﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;


namespace Demo1
{


    public class Tester
    {
        static void Main()
        {


            List<Player> PlayerList = new List<Player>();

            for (int i = 0; i < 1; i++)
            {
                PlayerList.Add(new Player(i));
            }
                
            Random Rand = new Random(1);
           

            //skill = new delSkill(pc, 4);
            //pc.AddProcess(skill.GetEnumerator(), 1);

            while (true)
            {

                foreach (Player pc in PlayerList)
                {

                    
                    // 우선 스스킬 프로세스가 없으면 스킬을 추가

                    if (pc.ProcessList.Count == 0)
                    {

                        pc.AddProcess(new Skill(pc), 0);

                        //int[] time = new int[3];
                        //time[0]= 1;
                        //time[1]= 3;
                        //time[2]= 6;
                        //time[0] = 3;

                        //IEnumerable skill = new Skill(pc, time[i]);
                        // pc.AddProcess(skill.GetEnumerator(),0);

                        // skill = new delSkill(pc, 7);
                        // pc.AddProcess(skill.GetEnumerator(),1);


                    }

                    pc.Update();





                }

            }
        }
    }
}
